<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .sjx {
            width: 0;
            height: 0;
            border: 10px solid transparent;
            border-bottom: 10px solid red;
        }

        .parent {
            margin-top: 20px;
            border-bottom: 1px solid red;
            transform: scaleY(0.5);
        }

        .box {
            height: 40px;
            width: 200px;
            background: pink;
            text-align: center;
            line-height: 40px;
            transform: skewX(-10deg);
            border-radius: 4px;
        }
    </style>
</head>

<body>
    <div class="sjx">

    </div>
    <div class="box">你好</div>
    <div class="parent"></div>
    <input type="text" class="search_input">
    <button id="btn">search</button>

    <script>

        let promise = Promise.allSettled([
            new Promise(resolve=>{setTimeout(()=>resolve(1),5000)}),
            new Promise((resolve,reject)=>{setTimeout(()=>reject(2),2000)}),
            new Promise(resolve=>{setTimeout(()=>resolve(3),2000)}),
        ]).then(res=>{
            console.log(res);
        }).catch(err=>{
            console.log(err);
        });
    </script>
</body>

</html>